-
Notifications
You must be signed in to change notification settings - Fork 14
Improve and fix GCP CI test #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3801145 to
d218e5d
Compare
f61e888 to
5f58b3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Should we also destroy the key here to keep everything consistent?
| docker_env = local.env | ||
| base_name = include.root.locals.base_name | ||
| origin_suffix = include.root.locals.origin_suffix | ||
| origin = "${local.base_name}${include.root.locals.origin_suffix}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also edit / remove origin_suffix from deployment/live/gcp/static-ct-staging/logs/root.hcl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left that there consciously so that the suffix is guaranteed to be common across all the arche logs.
This PR makes a few changes to the CI set up to fix the breakage and introduce some minor improvements:
generate_keycommand. Previously, incorrectlylogpreceded the origin.origin_suffixvariable withorigin. Previously,originwas passed implicitly asbase_name, andorigin_suffixwas appended in all locations where an origin was required. This change makes it easier to be explicit and consistent about the value of origin across multiple locations.safe_origininternal string for use in naming GCP resources where only alphanumeric and-chars are permitted.generate_keytool is tested.originand use that consistently.